const request = require('../utils/request')

/**
 * 获取用户信息
 * @param data
 * @returns {Promise<unknown>}
 */
export const getUserInfo = () => request.get('/api/user')

/**
 * 修改用户头像
 * @param data
 * @returns {Promise<unknown>}
 */
export const updateAvatar = data => request.patch('/api/user/avatar', data)